//
//  LLDetailViewController.swift
//  新浪微博
//
//  Created by mac on 16/5/22.
//  Copyright © 2016年 mac.com. All rights reserved.
//

import  UIKit
class LLDetailViewController: UIViewController {
    override func viewDidLoad() {
        self.title = "\(navigationController?.childViewControllers.count ?? 0)"
        view.backgroundColor = UIColor.greenColor()
        
//        let back = UIBarButtonItem(imagename: "navigationbar_back_withtext", title: "返回", target: self, action: Selector("back"))
//        self.navigationItem.leftBarButtonItem = back
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "Next", style:.Plain, target: self, action: Selector("next"))
        
    }
  @objc  private func next(){
    let detail = LLDetailViewController()
        navigationController?.pushViewController(detail, animated: true)
    }

}
